home *** CD-ROM | disk | FTP | other *** search
- comment /
- Yes, friends, here is another Beta version of ASM modules cranked out by yours
- truly. This is just a very small mod of CURON-CUROFF from Technotes and the
- Utilities disk. Problem started when CUROFF screwed up my cursor. First I
- fixed that by changing the value of CX to 200fh from 0f0fh before INT 10 call.
- Then I said what the hey, why not combine both and save myself a slot for a
- LOADable module (usually all full up). So I just combined CURON and CUROFF,
- making CURONOFF. As far as I know, it should work with CGA and mono but with
- EGA etc. I dunno, don't have the reference materials. Let me know if it does
- not work with your monitor please.
- Enjoy!
-
- Syntax:
- LOAD CURONOFF
- CALL CURONOFF WITH "F" turns it off
- CALL CURONOFF turns it on
- CALL CURONOFF WITH <anything but "F"> turns it on
-
-
-
- R. Russell Freeland (Synergy Corp.)
- voice: 305-792-1866
- Compuserve 76146,371
- 11-14-86
- /
-
-
-
-
- CODESEG SEGMENT
- assume CS:CODESEG
- CURONOFF PROC FAR
- ORG 0
-
- START:
- cmp Byte Ptr DS:[bx],'F' ;did you pass an "F"?
- jne ON ;no, turn cursor on
- OFF:
- mov CX,200fh ;else turn it off code in CX
- jmp CALLROM ;call the BIOS
- ON:
- int 11h ;find out what kind of equip.
- mov CX,0607h ;assume color
- and AL,10h ;check tho
- jz NOTMONO ;OK? jump
- mov CX,0B0Ch ;whoops, mono, set CX
- NOTMONO:
- CALLROM:
- mov AH,01
- int 10h
- DONE:
- RET
- CURONOFF ENDP
- CODESEG ENDS
- END START